package com.stylefeng.guns.modular.system.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 邮箱用户关系表
 * </p>
 *
 * @author yuzihao123
 * @since 2018-05-18
 */
@TableName("sys_email_user")
public class EmailUser extends Model<EmailUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 所属用户id
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 邮箱id
     */
    @TableField("email_id")
    private Integer emailId;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 状态（1：可用，0：不可用）
     */
    private Integer status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getEmailId() {
        return emailId;
    }

    public void setEmailId(Integer emailId) {
        this.emailId = emailId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "EmailUser{" +
        "id=" + id +
        ", userId=" + userId +
        ", emailId=" + emailId +
        ", createtime=" + createtime +
        ", status=" + status +
        "}";
    }
}
